from rest_framework.routers import DefaultRouter
from message import views
from django.urls import path, include


router = DefaultRouter()
router.register('messagecate', views.CategoryViewSet, basename='category')
router.register('message', views.MessageViewSet, basename='message')

urlpatterns = [
    path('', include(router.urls)),
]